/* 
 * Gneat (http://gneat.org)
 *
 * (C) Copyright 2011 and beyond - Claudio Stella, all rights reserved.
 *
 * This file is part of Gneat.
 *
 * Gneat is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License (LGPL)
 * as published by the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Gneat is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * and the GNU General Public License, for completeness, along with Gneat.  
 * If not, see <http://www.gnu.org/licenses/>.
 */
package org.neatshell.gneat.client.presenter.core.events;

import org.neatshell.gneat.client.handler.mouse.ClickHandler;
import org.neatshell.gneat.client.handler.mouse.DblClickHandler;
import org.neatshell.gneat.client.handler.mouse.MouseDownHandler;
import org.neatshell.gneat.client.handler.mouse.MouseMoveHandler;
import org.neatshell.gneat.client.handler.mouse.MouseOutHandler;
import org.neatshell.gneat.client.handler.mouse.MouseOverHandler;
import org.neatshell.gneat.client.handler.mouse.MouseUpHandler;
import org.neatshell.gneat.client.presenter.core.IPresenter;

public interface MouseEvents {
	/**
	 * Binds a {@link ClickHandler} to the "click" event on the element referenced by this presenter
	 * @param handler a {@link ClickHandler}
	 */
	public IPresenter click(ClickHandler handler);

	/**
	 * Triggers a "click" event on the element referenced by this presenter
	 */
	public IPresenter click();

	/**
	 * Binds a {@link DblClickHandler} to the "dblclick" event on the element referenced by this presenter
	 * @param handler a {@link DblClickHandler}
	 */
	public IPresenter dblclick(DblClickHandler handler);

	/**
	 * Triggers a "dblclick" event on the element referenced by this presenter
	 */
	public IPresenter dblclick();	
	public IPresenter mousedown(MouseDownHandler handler);

	/**
	 * Triggers a "mousedown" event on the element referenced by this presenter
	 */
	public IPresenter mousedown();
	public IPresenter mousemove(MouseMoveHandler handler);

	/**
	 * Triggers a "mousemove" event on the element referenced by this presenter
	 */
	public IPresenter mousemove();	
	public IPresenter mouseout(MouseOutHandler handler);

	/**
	 * Triggers a "mouseout" event on the element referenced by this presenter
	 */
	public IPresenter mouseout();
	public IPresenter mouseover(MouseOverHandler handler);

	/**
	 * Triggers a "mouseover" event on the element referenced by this presenter
	 */
	public IPresenter mouseover();	
	public IPresenter mouseup(MouseUpHandler handler);

	/**
	 * Triggers a "mouseup" event on the element referenced by this presenter
	 */
	public IPresenter mouseup();	
}